<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"
	import="com.omazan.facace.models.UserSessionDetails"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LoginDetails</title>
</head>
<body>
	<h2>User</h2>
	<div class="left-content">

		<%UserSessionDetails userSessionDetails = (UserSessionDetails)session.getAttribute("userSessionDetails");%>

		<%
				if (userSessionDetails == null) {
			%>
		<br>
		<form name="input" action="Login" method="post">
			&nbsp;&nbsp;<input type="text" name="userName" size="15"
				value="Username"> <br> <br>&nbsp;&nbsp;<input
				type="password" name="userPassword" size="15" value="Password">
			<br>
			<br> &nbsp;&nbsp;&nbsp;&nbsp; <input type="submit" value="Login">
		</form>

		New user?<a href="/OmazanERP/Register.jsp">register</a>
		<%
				} else {
			%>
		<ol>
			<li>Logged in as, <%= userSessionDetails.getLoginDetails().getUser()%>
			</li>
			<li><a href="Logout">logout</a></li>
		</ol>
		<%
				}
			%>
		<ol>
			<li></li>
		</ol>

	</div>
</body>
</html>